package d.max.rwp.ui.component;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.ImageView;
import d.max.rwp.R;
import java.io.File;

/**
 * author: Maxim Dybarskiy
 * date:   Sep 11, 2011
 * time:   4:01:42 PM
 */
public class ImagePreviewDialog extends AlertDialog {

    public ImagePreviewDialog(Context context, OnClickListener positive, File image) {
        super(context);
        
        ImageView view = new ImageView(context);
        
        view.setImageResource(R.drawable.test);
        
        this.setView(view);
        
        this.setButton(BUTTON_POSITIVE, "Вдуть", positive);
        this.setButton(BUTTON_NEGATIVE, "Cancel", new OnClickListener() {
            @Override
            public void onClick(DialogInterface di, int i) {}
        });
    }
    
}
